package com.atguigu.eduservice.remoteProcedureCalls.ExceptionImpl;

import com.atguigu.commonutils.R;
import com.atguigu.eduservice.remoteProcedureCalls.VodClient;
import org.springframework.stereotype.Component;

import java.util.List;

//调用模块时出错了会执行这个类

@Component
public class VodClientErrorDegradeFeignClient implements VodClient {
   //出错之后会执行
    @Override
    public R removeAlyVideo123456(String id) {
        return R.error().message("删除视频出错了");
    }

    @Override
    public R deleteBatch(List<String> videoIdList) {
        return R.error().message("删除多个视频出错了");
    }
}
